package com.wzp.fulfill.domain.gateway;

import com.wzp.fulfill.domain.model.fulfillorder.FulfillOrder;
import com.wzp.fulfill.domain.model.warehouse.Warehouse;
import com.wzp.fulfill.domain.model.warehouse.Warehouses;

import java.util.List;

/**
 * 仓储域的路由接口
 */
public interface WarehouseApiGateway {

    public Warehouses getAll();

    public Boolean lockInventory(Long warehouseId, Long orderId, List<String> skuCodes, List<Long> inventoryCount);

    public void sendFulfillOrder(FulfillOrder fulfillOrder, Warehouse warehouse);

}
